<!-- Not used unless you declare a <form-login login-page="/login.jsp"/> element -->
<%@ include file="/WEB-INF/taglibs/common/taglibs.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="<c:url value="/css/styles.css"/>" />
<title><fmt:message key="message.header.title" /></title>
</head>

<body onload="document.f.j_username.focus();">
<table border="0" width="100%" height="50%">
	<tr>
		<td align="center">
		<h3><fmt:message key="msg.welcome" /></h3>
		</td>
	</tr>

	<tr>
		<td align="center"><%-- this form-login-page form is also used as the
			         form-error-page to ask for a login again.
			         --%>
			<c:if test="${not empty param.login_error}">
				<font color="red">
					<fmt:message key="error.auth" />
					<br />
					<br />
					<fmt:message key="msg.reason" />
					<c:out value="${SPRING_SECURITY_LAST_EXCEPTION.message}" />.
				</font>
			</c:if>
		</td>
	</tr>

	<tr>
		<td align="center">
		<form name="f" action="<c:url value='j_spring_security_check'/>"
			method="POST">
		<table width=40% class="formTable">
			<tr class="formHeader">
				<td colspan="2"><spring:message code="login.label.title" /></td>
			</tr>
			<tr>
				<td><spring:message code="login.label.email" />:</td>
				<td><input type='text' name='j_username'
					value='<c:if test="${not empty param.login_error}"><c:out value="${SPRING_SECURITY_LAST_USERNAME}"/></c:if>' /></td>
			</tr>
			<tr>
				<td><spring:message code="login.label.password" />:</td>
				<td><input type='password' name='j_password'></td>
			</tr>
			<!--<tr><td><input type="checkbox" name="_spring_security_remember_me"></td><td>-->
			<!--<fmt:message key="msg.remember_me"/></td></tr>-->

			<tr>
				<td>&nbsp;</td>
			</tr>

			<tr>
				<td colspan='2' align="center">
					<input name="submit" type="submit" class='ui-button ui-state-default ui-corner-all' value='<spring:message code="login.button.login" />'> &nbsp;&nbsp; 
					<input name="reset" type="reset" value='<spring:message code="login.button.reset" />'>&nbsp;&nbsp;
				</td>
			</tr>
			<tr>
				<td align="center" colspan="2">
					<a href="UserRegistration.htm"><b><spring:message code="page.login.userregistration" /></b></a>&nbsp;&nbsp;
					<a href="ForgottenPassword.htm"><b><spring:message code="page.login.forgotten_password" /></b></a>					
				</td>
			</tr>
		</table>

		</form>
		</td>
	</tr>
</table>

<!-- Test Data Board
  <div>
      <p>
          <h2>Test Data Board</h2>
      </p>
      ${message}
      <table>
          <tr>
              <td colspan="12" align="left" style="padding-left: 250px;" width="100%"><br/>
                  <form:form action="/sp/provider/test_data.htm" >
                      <button name="load">Load Test Data</button>
                      <button name="delete">Delete Test Data</button>
                  </form:form>
              </td>
          </tr>
      </table>
  </div>     -->

<%@include file="/WEB-INF/jsp/include/footer.jsp"%>
</body>
</html>



